home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / options.h < prev    next >
C/C++ Source or Header  |  1997-02-09  |  6KB  |  128 lines

  1. /* struct options.
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. struct options {
  19.    int verbose;                 /* Are we verbose? */
  20.    int quiet;                   /* Are we quiet? */
  21.    int ntry;                    /* Number of tries per URL */
  22.    int kill_longer;             /* Do we reject messages with *more*
  23.                                    data than specified in
  24.                                    content-length? */
  25.    int ignore_length;        /* Do we heed content-length at all?  */
  26.    int recursive;               /* Are we recursive? */
  27.    int spanhost;                /* Do we span across hosts in
  28.                                    recursion? */
  29.    int relative_only;           /* Follow only relative links. */
  30.    int no_parent;               /* Restrict access to the parent
  31.                                    directory.  */
  32.    int simple_check;            /* Should we use simple checking
  33.                                    (strcmp) or do we create a host
  34.                                    hash and call gethostbyname? */
  35.    int maxreclevel;             /* Maximum level of recursion */
  36.    int dirstruct;               /* Do we build the directory structure
  37.                                    as we go along? */
  38.    int no_dirstruct;            /* Do we hate dirstruct? */
  39.    int dirmode;                 /* Permissions for direcories in
  40.                                    directory structure */
  41.    int add_hostdir;             /* Do we add hostname directory? */
  42.    int noclobber;               /* Disables clobbering of existing
  43.                                    data. */
  44.    char *dir_prefix;            /* The top of directory tree */
  45.    char *lfilename;             /* Log filename */
  46.    char *input_filename;        /* Input filename */
  47.    int force_html;              /* Is the input file an HTML file? */
  48.  
  49.    int spider;                  /* Is Wget in spider mode? */
  50.    
  51.    char **accepts;              /* List of patterns to accept. */
  52.    char **rejects;              /* List of patterns to reject. */
  53.    char **excludes;             /* List of excluded FTP directories. */
  54.    char **includes;             /* List of FTP directories to
  55.                                    follow. */
  56.  
  57.    char **domains;        /* See host.c */
  58.    char **exclude_domains;
  59.  
  60.    int follow_ftp;              /* Are FTP URL-s followed in recursive
  61.                                    retrieving? */
  62.    int retr_symlinks;           /* Whether we retrieve symlinks in
  63.                                    FTP. */
  64.    char *output_document;       /* The output file to which the
  65.                                    documents will be printed.  */
  66.    FILE *dfp;                   /* The file pointer to the output
  67.                                    document. */
  68.    
  69.    int always_rest;             /* Always use REST. */
  70.    char *ftp_acc;               /* FTP username */
  71.    char *ftp_pass;              /* FTP password */
  72.    int ftp_glob;                /* FTP globbing */
  73.    int ftp_pasv;                /* Passive FTP. */
  74.  
  75.    char *http_user;             /* HTTP user. */
  76.    char *http_passwd;           /* HTTP password. */
  77.    char *user_header;           /* User-defined header(s). */
  78.  
  79.    int use_proxy;               /* Do we use proxy? */
  80.    int proxy_cache;             /* Do we load from proxy cache? */
  81.    char *http_proxy, *ftp_proxy;
  82.    char **no_proxy;
  83.    char *base_href;
  84. #ifdef HAVE_SELECT
  85.    int timeout;                 /* The value of read timeout in
  86.                                    seconds. */
  87. #endif
  88.    int wait;                    /* The wait period between retries. */
  89.    int use_robots;              /* Do we heed robots.txt? */
  90.    
  91.    long quota;                  /* Maximum number of bytes to
  92.                                    retrieve. */
  93.    long downloaded;             /* How much we downloaded already. */
  94.    int numurls;                 /* Number of successfully downloaded
  95.                                    URLs */
  96.  
  97.    int server_response;         /* Do we print server response? */
  98.    int save_headers;            /* Do we save headers together with
  99.                                    file? */
  100.  
  101.    FILE *lfile;                 /* Global log file */
  102. #ifdef DEBUG
  103.    int debug;                   /* Debugging on/off */
  104. #endif /* DEBUG */
  105.  
  106.    int timestamping;            /* Whether to use time-stamping. */
  107.    int backups;                 /* Are backups made? */
  108.  
  109.    char *useragent;             /* Naughty User-Agent, which can be
  110.                                    set to something other than
  111.                                    Wget. */
  112.    int convert_links;           /* Will the links be converted
  113.                                    locally? */
  114.    int remove_listing;          /* Do we remove .listing files
  115.                                    generated by FTP? */
  116.    int htmlify;                 /* Do we HTML-ify the OS-dependent
  117.                                    listings? */
  118.  
  119.    long dot_bytes;              /* How many bytes in a printing
  120.                                    dot. */
  121.    int dots_in_line;            /* How many dots in one line. */
  122.    int dot_spacing;             /* How many dots between spacings. */
  123.  
  124.    int delete_after;            /* Whether the files will be deleted
  125.                                    after download. */
  126. };
  127.  
  128.